<?php

return [
    'components' => [
        'db' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=localhost;dbname=curvanord',
            'username' => 'curvanord',
            'password' => 'Re971bxZ1^wc5wX7#7f54tNy61N3',
            'charset' => 'utf8mb4',
            'tablePrefix' => 'cd_',
            'enableSchemaCache' => true,
            'schemaCacheDuration' => 3600,
        ],
        'security' => [
            'public_key' => 'eN&0x9w&ycfx$eapq#C',
            'secret_key' => md5('curvanord'),
        ],
        'mailer' => [
            'class' => 'yii\swiftmailer\Mailer',
            'viewPath' => '@common/mail',
        ],
        'alioss' => [
            'accessKeyId' => 'LTAI5tRkfXSo93TwLQasSzWW',
            'accessKeySecret' => '2OOyLxtxr3BUTTl1DERVtGuo2uGKkY',
            'endpoint' => 'http://oss-cn-qingdao.aliyuncs.com',
            'bucket' => 'curvanord',
            'host' => 'http://curvanord.oss-cn-qingdao.aliyuncs.com',
        ],
        'alists' => [
            'accessKeyId' => 'LTAI5tRkfXSo93TwLQasSzWW',
            'accessKeySecret' => '2OOyLxtxr3BUTTl1DERVtGuo2uGKkY',
            'endpoint' => 'https://oss-cn-qingdao.aliyuncs.com',
            'bucket' => 'curvanord',
            'host' => 'http://curvanord.oss-cn-qingdao.aliyuncs.com',
            'roleArn' => 'acs:ram::1232345090959492:role/ossrole',
        ],
        //微信小程序
        'wechatMp' => [
            'class' => 'common\components\wechat\MpWechat',
            'appId' => 'wx36737fec60144750',
            'appSecret' => '6192071a22d623112b61c8dd9cfa5d96',
//            'token' => 'bhhV8ET3fQe1YWyVXUJWxt1VXeny11Yu',
//            'encodingAesKey' => 'FHYQYuxx8dPWdltxQn801PpHeZWxzfV3HYJzVnqWxhf',
        ],
    ],
];
